<%@ page contentType="text/html;charset=UTF-8"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>

<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>SOAP测试页面</title>
		
		<link rel='stylesheet' type='text/css' href='css/main.css' />
		<!-- jquery from cdn at (mt) Media Temple -->
		<script type='text/javascript' src='scripts/jquery-1.10.2.js'></script>
		<script type='text/javascript' src='scripts/jquery.soap.js'></script>
		<script type='text/javascript' src='scripts/demo.js'></script>
		<script type='text/javascript' src='scripts/html2dom.js'></script>
		<script type='text/javascript' src='scripts/jquery.xml2json.js'></script>
	</head>
	<body>
	<header ><h1>SOAP测试页面</h1></header>
	

		<form>
			<fieldset>
				<label>url:</label>
				<input type='text' id='url' value='<%=basePath%>services' size='70' />
			</fieldset>
			<fieldset>
				<label>address:</label>
				<input type='text' id='method' value='/logResourceFacade' />
			</fieldset>
			<fieldset>
				<label>elementName:</label>
				<input type='text' id='elementName' value='log' />
			</fieldset>
			<fieldset>
				<label>namespace:</label>
				<input type='text' id='namespaceURL' value='com.twl.plugin.logging.facade'  size='33' />
			</fieldset>
			
			<fieldset>
				<label>data:</label> 
				<select id='dataType'>
				<option value='xml'>XML String</option>
				<option value='json'>JSON</option>
				</select>
			</fieldset>
			<fieldset>
				<label>XML String:<br />&lt;test&gt;some text here...&lt;/test&gt;<br /><br />JSON example:<br />{ test: 'some text here...' }</label>
				<textarea id='data' rows='10' cols='50'><bytesCount>-5000</bytesCount></textarea>
			</fieldset>
		
			
			<fieldset>
				
			</fieldset>
			<fieldset>
				
			</fieldset>
			
			<fieldset>
				<label>&nbsp;</label>
				<button id='test'>Start jQuery.soap Test!!</button>
			</fieldset>
		</form>
		
		<div id='feedbackpanel'>
			<h2>Request:</h2>
			<pre id='requestXML'>
			</pre>
			<h2 id='feedbackHeader'></h2>
		</div>
		<footer>

	
		<textarea id='feedback'  wrap="off"   style="width: 100%;height:400px; overflow: auto;" readonly="" autocomplete="off">
			
			</textarea>
		</footer>
	</body>
</html>
